package com.dataextend.dto;

import lombok.Data;

import java.util.List;

@Data
public class PropertyAndActDTO {
    private String groupId;

    /** 分群名称*/
    private String groupName;

    /** 备注*/
    private String comment;

    /** property属性 act行为 all属性+行为*/
    private String ruleType;
    private propertyRules propertyRules;
    private actRules actRules;

    /** 人群数量*/
    private Integer groupNum;

    @Data
    public static class propertyRules {
        private String relationship;
        private List<ruleDetails> ruleDetails;
    }

    @Data
    public static class ruleDetails{
        private String key;        // 标签code
        private String value;      // 标签值
        private String condition;  // 条件 = != >=  <= like
    }


    @Data
    public static class actRules {
        private String relationship;
        private List<actDetails> actDetails;
    }

    @Data
    public static class actDetails {
        private String startDate;   // 开始日期
        private String endDate;     // 结束日期
        private String actType;     // 做过/未做过 =/!=
        private String eventCode;   // 行为事件
        private Integer num;        // 次数
    }

}
